Skip to main content
Version: 3.x.x

ExtractUnionAdapter


import { ExtractUnionAdapter } from "@hyper-fetch/core"

Description

Defined in adapter/adapter.types.ts:40

Preview

type ExtractUnionAdapter<AdapterType,Values> = Extract<AdapterType, BaseAdapterType<Values[options], Values[method], Values[status], Values[additionalData], Values[queryParams]>> extends AdapterInstance ? Extract<AdapterType, BaseAdapterType<Values[options], Values[method], Values[status], Values[additionalData], Values[queryParams]>> : never;

Structure

Extract<AdapterType, BaseAdapterType<Values[options], Values[method], Values[status], Values[additionalData], Values[queryParams]>> extends AdapterInstance ? Extract<AdapterType, BaseAdapterType<Values[options], Values[method], Values[status], Values[additionalData], Values[queryParams]>> : never